package cn.sycoder.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class InterceptorException extends RuntimeException{
    private String code;

    /**
     * 自定义拦截器异常
     * @param code
     * @param message
     */
    public InterceptorException(String code,String message){
        super(message);
        this.code = code;
    }
}
